home *** CD-ROM | disk | FTP | other *** search
- Path: blue.usps.gov!news
- From: Craig Johnson <cjohnso7@email.usps.gov>
- Newsgroups: comp.lang.c++
- Subject: What?? MS forgot about the ANSI standard
- Date: Thu, 18 Jan 1996 12:31:59 -0500
- Organization: U.S. Postal Service
- Message-ID: <30FE840F.4235@email.usps.gov>
- NNTP-Posting-Host: wbissc006.usps.gov
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (WinNT; I)
-
- I am using the code similar to below in VC 4.0:
-
- char block[80];
- int *p = new (block) int;
-
- I get the following compiler error:
-
- error C2661: 'new' : no overloaded function takes 2 parameters
-
- This is perfectly valid C++ syntax. Am I crazy or did Microsoft
- forget about the ANSI standard. Any of you using the STL
- probably came across this error also. If so, how did you
- resolve it?
-
- Thanks,
- Craig Johnson
- cjohnso7@email.usps.gov
-